"""
Game constants and enumerations
"""

# Game states
class GameState:
    MENU = "menu"
    PLAYING = "playing"
    PAUSED = "paused"
    GAME_OVER = "game_over"
    SETTINGS = "settings"

# Tank directions
class Direction:
    UP = 0
    DOWN = 1
    LEFT = 2
    RIGHT = 3

# Map tile types
class TileType:
    EMPTY = 0
    BRICK = 1
    STEEL = 2
    GRASS = 3
    WATER = 4

# Tank types
class TankType:
    PLAYER = "player"
    ENEMY_BASIC = "enemy_basic"
    ENEMY_FAST = "enemy_fast"
    ENEMY_HEAVY = "enemy_heavy"

# Bullet types
class BulletType:
    NORMAL = "normal"
    FAST = "fast"
    HEAVY = "heavy"

# Collision types
class CollisionType:
    NONE = 0
    WALL = 1
    TANK = 2
    BULLET = 3
    BOUNDARY = 4

# Key mappings
class Keys:
    UP = "w"
    DOWN = "s"
    LEFT = "a"
    RIGHT = "d"
    FIRE = "space"
    PAUSE = "escape"

# Power-up types
class PowerUpType:
    STEEL_BREAKER = "steel_breaker"  # 允许子弹破坏钢墙

# Power-up effects duration (in milliseconds)
POWER_UP_DURATION = 30000  # 30秒
